/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Forms;

import Constants.*;
import NetworkRequests.*;
import javax.microedition.lcdui.*;

public class QueryingForm extends Form implements CommandListener {

    private Gauge _Gauge;

    public QueryingForm(String domain)
    {
        super(Constant.QueryingForm_Title);

        _Gauge = new Gauge (this.getTitle(), false, Gauge.INDEFINITE, Gauge.CONTINUOUS_RUNNING);
        
        append(_Gauge);

        String whoisServer = "whois.cnnic.cn";
        WhoisRequest wr = WhoisRequest.Create(domain, whoisServer);
        wr.Start();
    }

    public void commandAction(Command c, Displayable s) {
    }
}

